package com.mixfate.schedule;


import com.mixfate.service.CacheService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class AdminSchedule {

    @Autowired
    private CacheService cacheService;

    @Scheduled(cron = "0/1 * * * * ?")
    public void process() {
        cacheService.get("name" + System.currentTimeMillis() / 10000);
        log.info("schedule success");
    }

}
